package com.shrct.businessprocess.product.impl;

import com.shrct.businessprocess.product.RCLogicProduct;
import com.shrct.businessprocess.product.RCRMAEvent;
import com.shrct.businessprocess.product.impl.RCLogicProductEventImpl;
import com.shrct.businessprocess.product.proxy.RCRMAEventProxy;
import java.util.Date;
import javax.persistence.DiscriminatorValue;
import javax.persistence.Entity;

@Entity
@DiscriminatorValue("RCRMAEVENT_TYPE")
public abstract class RCRMAEventImpl extends RCLogicProductEventImpl implements RCRMAEvent {
  public RCRMAEventImpl() {
    super();
  }
  
  public RCRMAEventImpl(final RCLogicProduct logicProduct) {
    super( logicProduct);
    
  }
  
  private Date newItemArriveDate;
  
  public Date getNewItemArriveDate() {
    return this.newItemArriveDate;
  }
  
  public RCRMAEvent setNewItemArriveDate(final Date newItemArriveDate) {
    this.newItemArriveDate = newItemArriveDate;
    return this;			
    
  }
  
  private Date newItemInstallDate;
  
  public Date getNewItemInstallDate() {
    return this.newItemInstallDate;
  }
  
  public RCRMAEvent setNewItemInstallDate(final Date newItemInstallDate) {
    this.newItemInstallDate = newItemInstallDate;
    return this;			
    
  }
  
  private Date badItemReceiveDate;
  
  public Date getBadItemReceiveDate() {
    return this.badItemReceiveDate;
  }
  
  public RCRMAEvent setBadItemReceiveDate(final Date badItemReceiveDate) {
    this.badItemReceiveDate = badItemReceiveDate;
    return this;			
    
  }
  
  private Date badItemReturnDate;
  
  public Date getBadItemReturnDate() {
    return this.badItemReturnDate;
  }
  
  public RCRMAEvent setBadItemReturnDate(final Date badItemReturnDate) {
    this.badItemReturnDate = badItemReturnDate;
    return this;			
    
  }
  
  private String supplierName;
  
  public String getSupplierName() {
    return this.supplierName;
  }
  
  public RCRMAEvent setSupplierName(final String supplierName) {
    this.supplierName = supplierName;
    return this;			
    
  }
  
  private String rmaNumber;
  
  public String getRmaNumber() {
    return this.rmaNumber;
  }
  
  public RCRMAEvent setRmaNumber(final String rmaNumber) {
    this.rmaNumber = rmaNumber;
    return this;			
    
  }
  
  private String caseNumber;
  
  public String getCaseNumber() {
    return this.caseNumber;
  }
  
  public RCRMAEvent setCaseNumber(final String caseNumber) {
    this.caseNumber = caseNumber;
    return this;			
    
  }
  
  private String comment;
  
  public String getComment() {
    return this.comment;
  }
  
  public RCRMAEvent setComment(final String comment) {
    this.comment = comment;
    return this;			
    
  }
  
  public RCRMAEventProxy toProxy() {
    com.shrct.businessprocess.product.proxy.RCRMAEventProxy proxy = new com.shrct.businessprocess.product.proxy.RCRMAEventProxy();
    proxy.setId(this.getId());
    if(this instanceof edu.fudan.mylang.pf.INamedModelObject){
    	proxy.setName(((edu.fudan.mylang.pf.INamedModelObject)this).getEntityName());
    }
    return proxy;
    
  }
}
